JavaScript

windowObject.setButtonDisplay Method

Syntax

windowObj.setButtonDisplay(buttonName, visible);

Arguments

buttonNamestring

The name of the button you want to show or hide.

visibleboolean

A true/false value. If true, the specified button will be shown. If false, the specified button will be hidden.

Description

Set the visibility of a button in the window toolbar section.

Example

//get a pointer to the window object
var windowObj = {dialog.object}.getWindow('MYWINDOW');

if (windowObj) {
    windowObj.setButtonDisplay('button1',true);
}